import React from 'react';
import ReactDOM from 'react-dom';
import { Routers } from './routers'
import { Provider } from 'react-redux';
import store from './sage/store'
import { hot } from 'react-hot-loader/root'
import './css/common.css'

const HotRoutes = hot(Routers)
const App = () => {
    return (
        <Provider store={store}>
            <HotRoutes />
        </Provider>
    )
}
if ('addEventListener' in document) {
    document.addEventListener('DOMContentLoaded', function () {
        ReactDOM.render(< App />, document.getElementById('root'));
    }, false);
}